home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 9
/
FM Towns Free Software Collection 9.iso
/
t_os
/
tool
/
tetujin
/
src
/
igrwin.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-16
|
2KB
|
73 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int windowId ;
extern int windowFunc() ;
extern int vscrollId ;
extern int scrollFunc() ;
extern int hscrollId ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataIGRWIN = { "MmiInit", 3, 0 } ;
/* windowId */
static MMIPACKET d001 = { &windowId,
NULL,
&MJ_WINDOWL40,
OFFSET(WINDOWL40),
MS_NONE
} ;
static WINDOWL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40 | MS_TITLEL40 | MS_CLOSEL40 | MS_RESIZEL40,
0, 20, 511, 479, 8, 6, 9,
MS_BFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0,
0, 17, 496, 427,
128, 96, 640, 480,
windowFunc,
" ",
} ;
/* vscrollId */
static MMIPACKET d002 = { &vscrollId,
&windowId,
&MJ_SCRLL40,
OFFSET(SCRLL40),
MS_NONE
} ;
static SCRLL40 d002d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_RIGHTL40 | MS_FIXEDL40,
496, 36, 511, 463, 8, 6, 4,
MS_PANELL40 | MS_FRAMEL40,
scrollFunc,
0, 0, 255, 256, 1,
263, 264
} ;
/* hscrollId */
static MMIPACKET d003 = { &hscrollId,
&windowId,
&MJ_SCRLL40,
0,
MS_NONE
} ;
static SCRLL40 d003d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_RIGHTL40 | MS_FIXEDL40 | MS_HORIL40,
0, 464, 495, 479, 8, 6, 4,
MS_PANELL40 | MS_FRAMEL40,
scrollFunc,
0, 0, 255, 256, 1,
265, 266
} ;